﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;
using DTO;

namespace GUI
{
    public partial class Form_BanHang_TV : UserControl
    {
        public Form_BanHang_TV()
        {
            InitializeComponent();
        }

        
        private void Form_BanHang_TV_Load(object sender, EventArgs e)
        {
            BanHang_TVBUS bus = new BanHang_TVBUS ();
            // Load cmb Thanhvien
            List<ThanhVienDTO> tv = bus.LayBangThanhVien();
            cmbTV.Properties.DataSource = tv;
            cmbTV.ItemIndex = 0;

            // Load cmb loaiDH
            List<LoaiDHDTO> ldh = bus.LayBangLoaiDH();
            cmbloaidh.Properties.DataSource = ldh;
            cmbloaidh.ItemIndex = 0;

            // load cmb timkiem 
            List<DonBanHangDTO> dbh = bus.LayBangDonBanHang();
            cmbtimkiem.Properties.DataSource = dbh;
          //  cmbtimkiem.ItemIndex = 0;
        }
    }
}
